<?php
/**
 * Created by PhpStorm.
 * User: YiivonHome
 * Date: 2016-05-28
 * Time: 15:53
 */
require('../include/init.inc.php');
define('GAME_HOST', 'http://www.yesgame.club/%s/');

$c = extract($_GET);

if (isset($gid) && $gid) {
    Wxgame::addVisited();
    //header("Location: " . sprintf(GAME_HOST, $gid));
}

Template::assign('name', $gid);
Template::assign('logo', (sprintf(GAME_HOST, $gid) .  'logo.png'));
Template::assign('link', sprintf(GAME_HOST, $gid));
Template::display('wxgame/introgame.tpl');


exit;